package leetcode.code0689;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class S689 implements IDebug {
	public abstract int[] maxSumOfThreeSubarrays(int[] nums, int k);
	@Override
	public void debug1() {
		int[] r = this.maxSumOfThreeSubarrays(HelpDebug.str2array3("[1,2,1,2,6,7,5,1]"), 2);
		int[] e = HelpDebug.str2array3("[0,3,5]");
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int[] r = this.maxSumOfThreeSubarrays(HelpDebug.str2array3("[1,2,1,2,1,2,1,2,1]"), 2);
		int[] e = HelpDebug.str2array3("[0,2,4]");
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		// [1,2,1,2,6,7,5,1,2,1,2,6,7,5,2,1,2,6,7,5] 2

		int[] r = this.maxSumOfThreeSubarrays(HelpDebug.str2array3("[1,2,1,2,6,7,5,1,2,1,2,6,7,5,2,1,2,6,7,5]"), 2);
		int[] e = HelpDebug.str2array3("[4,11,17]");
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		// [1,2,1,2,6,7,5,1,2,1,2,6,7,5,2,1,2,6,7,5] 2

		int[] r = this.maxSumOfThreeSubarrays(HelpDebug.str2array3("[7,13,20,19,19,2,10,1,1,19]"), 3);
		int[] e = HelpDebug.str2array3("[1,4,7]");
		HelpDebug.compare(e, r);
	}

}
